hysop.numerics.fft.host_fft module¶
OpenCl backend base interface for fast Fourier Transforms.
HostFFTI
HostFFTPlanI
HostFFTQueue
- class hysop.numerics.fft.host_fft.HostFFTI(backend=None, allocator=None, **kwds)[source]¶
Bases:
FFTI
Abstract base for FFT interfaces targetting Host backends.
Initializes the interface and default supported real and complex types.
- classmethod default_interface(threads=None, backend=None, allocator=None, planner_effort=None, planning_timelimit=None, destroy_input=False, warn_on_allocation=True, warn_on_misalignment=True, error_on_allocation=False, **kwds)[source]¶
Get the default host FFT interface. Preferred interface is multithreaded MKL FFT with the TBB threading layer (does not work with Intel threading layer). On import error the interface falls back to a multithreaded FFTW interface with ESTIMATE planning effort.
- plan_compute_energy(tg, fshape, src, dst, transforms, method='round', target=None, **kwds)[source]¶
Plan to compute energy from src array to dst array using given transforms, method (round or weighted) and numba target.